package cn.tedu.imop.basic.controller;

import cn.tedu.imop.basic.service.AreaService;
import cn.tedu.imop.common.constants.Constants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags="区域模块")
@RestController
@RequestMapping(Constants.CONTROLLER_API_VERSION +"/area")
public class AreaController {
    private final AreaService areaService;
    public AreaController(AreaService areaService) {
        this.areaService = areaService;
    }
    @ApiOperation("区域列表")
    @GetMapping
    public Object getAreaList() {
        return areaService.getAreaList();
    }

}
